<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%String mobileID = request.getParameter("mobileID");
    String contact = request.getParameter("contact");
    String register = request.getParameter("register");
    String checkout = request.getParameter("checkout");
    String rightpane = "rightpane.jsp";
    if (mobileID != null) {
        rightpane = "detailproduct.jsp";
    }
    if (contact != null) {
        rightpane = "contact.jsp";
    }
    if (register != null) {
        rightpane = "register.jsp";
    }
    if (checkout != null) {
        rightpane = "checkout.jsp";
    }

%>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="SHORTCUT ICON" href="image/shrotcuticon.png"></link>
        <title>Mobile Shop</title>

        <link href="css/style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="menu/menu_style.css" />
        <link rel="stylesheet" href="slide/nivo-slider.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="slide/style.css" type="text/css"/>
        <script type="text/javascript" src="slide/scripts/jquery-1.4.3.min.js"></script>
        <script type="text/javascript" src="slide/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript" src="menu/stmenu.js"></script>

        <script type="text/javascript">
            $(window).load(
            function() {
                $('#slider').nivoSlider();
            }
        );
            $(document).ready(function() {
                $("form input").keypress(function (e) {
                    if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
                        $("#btn_login").click();
                        return false;
                    } else {
                        return true;
                    }
                });
            });

            
        </script>
        <script type="text/javascript" src="tooltip/jtip.js"></script>
        <link href="tooltip/css/global.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="validate.js"></script>
    </head>

    <body>
        <a name="top" id="top"></a>
        <div id="frame">
            <div id="page">
                <div id="header">
                    <%@include file="header.jsp"  %>
                    <%@include file="menu.jsp" %>

                </div>
                <!--        end header -->
                <div id="content">
                    <%@include file="leftpane.jsp" %>

                    <%
                        User u = (User) session.getAttribute("sessionlogin");
                        String name = u.getUsername();
                        
                    %>


                    <div id="rightside">
                        <%@include file="slide.jsp" %>
                        <%%>
                        <div>

                            Cám ơn bạn <%=u.getUsername()%> đã đăng ký thành viên website chúng tôi.<br></br>
                            <a href="index.jsp">Trở về trang chủ</a>
                        
                        </div>

                    </div>
                    <%@include file="footer.jsp" %>
                    <!--    end page -->
                </div>
                </body>
                </html>